<?php

namespace App\Containers\AppSection\Accreditation\Actions;

use App\Containers\AppSection\Accreditation\Tasks\FindAccreditationByIdTask;
use App\Ship\Parents\Actions\Action;
use App\Ship\Parents\Requests\Request;

class GetAccreditationAction extends Action
{
    public function run($id, Request $request)
    {
        return app(FindAccreditationByIdTask::class)->addRequestCriteria()->run($id);
    }
}
